/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Helmet {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070025';
    }

    get categoryName() {
        return '\u5934\u76d4';
    }

    getBroadcast(params) {
        return command({
            method: 'getBroadcast',
            methodId: 'ptRSFoOx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getEarphoneSwitch(params) {
        return command({
            method: 'getEarphoneSwitch',
            methodId: 'pdNCaR7b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGpsPosition(params) {
        return command({
            method: 'getGpsPosition',
            methodId: 'p0croEro',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPlayingStatus(params) {
        return command({
            method: 'getPlayingStatus',
            methodId: 'pkpD9z1k',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSignalIntensity(params) {
        return command({
            method: 'getSignalIntensity',
            methodId: 'pz93zI31',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqjJNG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVolume(params) {
        return command({
            method: 'getVolume',
            methodId: 'p3deKWEq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBroadcast(params) {
        return command({
            method: 'setBroadcast',
            methodId: 'ppAXPrMr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChangeControl(params) {
        return command({
            method: 'setChangeControl',
            methodId: 'pDrhTNgV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setEarphoneSwitch(params) {
        return command({
            method: 'setEarphoneSwitch',
            methodId: 'pUPQldWd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOrientation(params) {
        return command({
            method: 'setOrientation',
            methodId: 'pgh0HTY3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'p1vZRvUS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPlay(params) {
        return command({
            method: 'setPlay',
            methodId: 'pGoxIHLL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fAtA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setVolume(params) {
        return command({
            method: 'setVolume',
            methodId: 'pZgunibZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Helmet;
